<!DOCTYPE html>
<html>
	<head>
		<title>{$title}</title>
		<link rel="stylesheet" href="{$base_url}/assets/css/reset.css" />
		<link rel="stylesheet" href="{$base_url}/assets/css/text.css" />
		<link rel="stylesheet" href="{$base_url}/assets/css/960.css" />
		<link rel="stylesheet" href="{$base_url}/assets/css/styles.css" />
		<script>
		var site_url = '{$site_url}';
		</script>
		<script src="{$base_url}/assets/js/jquery-1.6.1.min.js"></script>
		<script src="{$base_url}/assets/js/site.js"></script>
	</head>
	<body>
		
		<div class="container_16 clearfix">
			<div id="header" class="grid_16">
				<h1 id="logo">{$sitename}</h1>
				<p id="slogan">{$sitedesc}</p>
			</div>
			
			
			<div id="userbar" class="grid_16" style="text-align: right">
				{if $name != ''}
				Hello, <a href="{$site_url}?controller=user&action=profile">{$name}</a>. 
				<a href="{$site_url}?controller=user&action=logout">
					Logout
				</a>
				{else}
				<a href="{$site_url}?controller=user&action=login">
					Login
				</a>
				{/if}
				
			</div>
			
			
			<div id="menu" class="grid_16">
				<ul>
					<li><a href="{$site_url}">Home</a></li>
					<li><a href="{$site_url}?controller=blog">Blogs</a></li>
					<li><a href="{$site_url}?controller=user">Users</a></li>
					<li><a href="{$site_url}?controller=group">Goups</a></li>
				</ul>
			</div>
			
			{if $message != ''}
			<div class="grid_16">
				<div id="system-notice" class="{$type}">{$message}</div>
			</div>
			{/if}
			
			<div id="content" class="grid_16">